﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Hook.Graphics;
using Hook.Graphics.SpriteSheets;

namespace Hook.Environmental.Props.EnvironmentPieces
{
    class TinySquare : Prop
    {
        public TinySquare()
            : base()
        {
            Name = "TinySquare.txt";
            Sprite = new Sprite(Game1.EnvironmentSheet, EnvironmentSheet.TSQUARE);
            Sprite.Origin += new Vector3(-25, -25, 0);

            List<Vector3> VO = new List<Vector3>();

            VO.Add(new Vector3(0, 0, 0));
            VO.Add(new Vector3(50, 0, 0));
            VO.Add(new Vector3(50, 50, 0));
            VO.Add(new Vector3(0, 50, 0));

            Frame.SetPoints(VO);

            Mass = float.PositiveInfinity;
            Inertia = float.PositiveInfinity;
            GravityOn = false;

            CollisionLayer.Add(0);
            CollisionLayer.Add(1);
        }

        public TinySquare(Vector3 Position, Vector3 Rotation)
            : this()
        {
            SetPosition(Position);
            SetRotation(Rotation);
        }
    }
}
